home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group94a.txt / 000123_icon-group-sender _Tue May 10 12:21:22 1994.msg < prev    next >
Internet Message Format  |  1994-08-19  |  1KB

  1. Received: by cheltenham.cs.arizona.edu; Tue, 10 May 1994 12:20:19 MST
  2. From: "Art Eschenlauer" <eschen@molbio.cbs.umn.edu>
  3. Message-Id: <9405101721.AA02391@molbio.cbs.umn.edu>
  4. Subject: IconImplementQues: WhenShouldIPollKeyboardForInterrupt
  5. To: icon-group@cs.arizona.edu (icon-group@cs.arizona.edu)
  6. Date: Tue, 10 May 94 12:21:22 CDT
  7. X-Mailer: ELM [version 2.3test PL26]
  8. Status: R
  9. Errors-To: icon-group-errors@cs.arizona.edu
  10.  
  11. I am modifying the source code for mac standalone icon version 8. I would
  12. like to poll the keyboard frequently to see if the user is trying to
  13. interrupt the process (for instance, to get out of an infinite loop...).
  14. I suppose that I want some routine that is called fairly regularly, like
  15. at the end of every statement (for my use, polling only on input or output
  16. is not sufficient). What C function is called in the interpreter for 
  17. every statement? Should I poll the keyboard when that function is called
  18. or in the loop in the calling function or doesn't it matter? (If the answer
  19. is the second choice, what is the calling function?) I can probably figure
  20. this out on my own, but I thought that I'd ask lest I miss something
  21. obvious or not so obvious.
  22. - Art Eschenlauer
  23.  
  24.